package com.mpgame.database.constants;

public final class Constants {
    private Constants(){}

    public static final class CMySQL{
        private CMySQL(){}

        public static final int MYSQL_VERIFY_PORT = 3307;
        public static final int MYSQL_GAME_PORT = 3308;

        public static final String MYSQL_VERIFY_USER = "verify_user";
        public static final String MYSQL_VERIFY_PWD = "verify_pass123";

        public static final String MYSQL_GAME_USER = "game_user";
        public static final String MYSQL_GAME_PWD = "game_pass123";
    }

    public static final class CRedis{
        private CRedis(){}

        public static final int REDIS_PORT = 6380;

        public static final String REDIS_PWD = "redis123456";


        public static final int DB_DEFAULT = 0;
        public static final int DB_ONLINE_PLAYERS = 1;
        public static final int DB_GAME_CACHE = 2;
        public static final int DB_MESSAGE_QUEUE = 3;
    }

    public static final class CToken{
        private CToken(){}

        public static final String SECRET_KEY = "mpokemonSecretKey01234567890123456789012";
        public static final long TOKEN_EXPIRE_TIME = 5 * 60;
        public static final long SESSION_EXPIRE_TIME = 24 * 60 * 60;
        public static final String TOKEN_PREFIX = "token:";
        public static final String USER_SESSION_PREFIX = "user_session:";
    }
}
